package me.pearjelly.dao;

import me.pearjelly.model.PicGroup;

/**
 * @author 韩孝冰
 * 
 */
public interface PicGroupDao {
	/**
	 * 
	 * @param picGroup
	 */
	Long save(PicGroup picGroup);

	/**
	 * @param picGroup
	 */
	void update(PicGroup picGroup);

	/**
	 * 根据来源页面地址查询组图
	 * 
	 * @param refer
	 * @return
	 */
	PicGroup findByRefer(String refer);

	/**
	 * 根据id查询
	 * 
	 * @param id
	 * @return
	 */
	PicGroup findById(Long id);
}
